#pragma once
#pragma execution_character_set("utf-8")

#include <QDialog>
#include <QtWidgets>
#include "ui_TrayDialog.h"

class TrayDialog : public QDialog
{
	Q_OBJECT

public:
	TrayDialog(QWidget *parent = Q_NULLPTR);
	~TrayDialog();

private:
	void closeEvent(QCloseEvent *event);

private slots:
	int OnSystemTrayClicked(QSystemTrayIcon::ActivationReason reason);
	int OnExit();

private:
	Ui::TrayDialog ui;
	QSystemTrayIcon m_systray;
};
